package com.weixin.project.Dao;

import com.weixin.project.Entity.ForumQuestion;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface ForumQuestionDao extends JpaRepository<ForumQuestion,Integer>, JpaSpecificationExecutor<ForumQuestion> {
    Page<ForumQuestion> getForumQuestionsByOriginId(Integer originId, Pageable pageable);
    Integer countForumQuestionsByOriginId(Integer originId);
}
